x86: simplify is_guest_l2_slot()
authorJan Beulich <jbeulich@suse.com>
Fri, 4 Sep 2020 08:59:33 +0000 (10:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Sep 2020 08:59:33 +0000 (10:59 +0200)
commit8cf225013582723275f0d60f1107319f5963af7f
tree77e8846c2765366babee09a08f6a8987ff6d5956
parentafe018e041ec112d90a8b4e6ed607d22aa06f280
x86: simplify is_guest_l2_slot()

is_pv_32bit_domain() has become expensive, and its use here is
redundant: Only 32-bit guests would ever get PGT_pae_xen_l2 set on
their L2 page table pages anyway. (If some other error does lead to
PGT_pae_xen_l2 ending up anywhere else, we still don't want to allow a
guest to control the entries.)

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/x86_64/page.h